tester2 2.2.2
Loading...
Searching...
No Matches
Tester 2 Click Driver

API for configuring and manipulating Tester 2 Click driver. More...

Topics

 Tester 2 MikroBUS Map
 MikroBUS pin mapping of Tester 2 Click driver.

Functions

void tester2_cfg_setup (tester2_cfg_t *cfg)
 Tester 2 configuration object setup function.
err_t tester2_init (tester2_t *ctx, tester2_cfg_t *cfg)
 Tester 2 initialization function.
void tester2_toggle_all (tester2_t *ctx, uint16_t num_toggles, uint16_t toggle_delay_ms)
 Tester 2 toggle all function.
void tester2_toggle_seq (tester2_t *ctx, uint16_t toggle_delay_ms)
 Tester 2 toggle seq function.

Detailed Description

API for configuring and manipulating Tester 2 Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ tester2_cfg_setup()

void tester2_cfg_setup ( tester2_cfg_t * cfg)

Tester 2 configuration object setup function.

This function initializes Click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See tester2_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ tester2_init()

err_t tester2_init ( tester2_t * ctx,
tester2_cfg_t * cfg )

Tester 2 initialization function.

This function initializes all necessary pins and peripherals used for this Click board.

Parameters
[out]ctx: Click context object. See tester2_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See tester2_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error. See #err_t definition for detailed explanation.
Note
None.

◆ tester2_toggle_all()

void tester2_toggle_all ( tester2_t * ctx,
uint16_t num_toggles,
uint16_t toggle_delay_ms )

Tester 2 toggle all function.

This function toggles all mikroBUS pins together a desired number of times with the selected delay between each toggle.

Parameters
[in]ctx: Click context object. See tester2_t object definition for detailed explanation.
[in]num_toggles: Number of toggles.
[in]toggle_delay_ms: Delay in milliseconds between each toggle.
Returns
None.
Note
None.

◆ tester2_toggle_seq()

void tester2_toggle_seq ( tester2_t * ctx,
uint16_t toggle_delay_ms )

Tester 2 toggle seq function.

This function toggles all mikroBUS pins one by one with the selected delay between each toggle.

Parameters
[in]ctx: Click context object. See tester2_t object definition for detailed explanation.
[in]toggle_delay_ms: Delay in milliseconds between each toggle.
Returns
None.
Note
None.